import request from "@/config/request.js";

export const login=function (params={}) {
  return request({
    url: "/api/v1/login",
    method: "post",
    data: params,
  })
}

export const loadUserMenus=function (){
  return request({
    url: "/api/v1/menus",
    method: "get",
  })
}
export const loadPublicTeacher=function (teacher_name=''){
  return request({
    url: "/api/v1/auth/teacher",
    method: "get",
    params:{
      teacher_name:teacher_name,
    }
  })
}
